<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/
/**
 * BigDaddy Site Initialization: CONSTANTS
 * @author Duleepa Wijyawardhana <dups@bioware.com>
 * @version March 12, 2004
 */



//Version of BigDaddy
define("BIGDADDY_VERSION", "4.0.0");

//The Database functions
define ("DB_FUNCTIONS", LIBDIR."/init/dbfunctions.inc");

//Initialize database based sessions for this site
define ("SESSION_INIT", LIBDIR."/init/session.inc");

//Login Class
define ("CLASS_LOGIN", LIBDIR."/class/class_login.inc");

//Role Class
define ("CLASS_ROLE", LIBDIR."/class/class_role.inc");
define ("CLASS_ROLE_ADMIN", LIBDIR."/class/class_roleadmin.inc");


//User Management
define ("CLASS_USERADMIN", LIBDIR."/class/class_useradmin.inc");

//Theme Classes
define ("CLASS_APP", LIBDIR."/class/class_app.inc");
define ("CLASS_CONTENT", LIBDIR."/class/class_content.inc");

//Role Class
define ("CLASS_AUDIT", LIBDIR."/class/class_audit.inc");

//FormInput Class
define ("CLASS_FORMINPUT", LIBDIR."/class/class_forminput.inc");


//Login Script
define ("LOGIN_SCRIPT", LIBDIR."/init/login.inc");

//Login Form
define("LOGIN_FORM", LIBDIR."/init/login_form.inc");

//Access Check
define("ACCESS_CHECK", LIBDIR."/init/access_check.inc");

//Code Functions file
define ("CORE_FUNCTIONS", LIBDIR."/init/functions.inc");

//THeme specific constants
define("CP_THEME_COMMON_2006", $_SERVER["DOCUMENT_ROOT"]."/_common/theme/common");
define("CD_COMMON_2006", "/_common/theme/common");

//Classes
define ("CLASS_PARSE_INI", LIBDIR."/class/parseini.inc");
// Class::BigDaddy
define ("CLASS_BIGDADDY", LIBDIR."/class/class_bigdaddy.inc");
// Class::BigDaddy::BigdaddyControl
define ("CLASS_BIGDADDY_CONTROL", LIBDIR."/class/class_bigdaddycontrol.inc");
// Class::BigDaddy::BigdaddyHistory
define ("CLASS_BIGDADDY_HISTORY", LIBDIR."/class/class_bigdaddyhistory.inc");
// Class::BigDaddy::BigdaddyData
define ("CLASS_BIGDADDY_DATA", LIBDIR."/class/class_bigdaddydata.inc");
// Class::BigDaddy::BigdaddyDisplay
define ("CLASS_BIGDADDY_DISPLAY", LIBDIR."/class/class_bigdaddydisplay.inc");

// Wiki Formatting
define ("CLASS_FORMATTINGPARSE", LIBDIR."/class/class_formattingparse.inc");

//Theme File
define ("THEME_INC", LIBDIR."/init/theme.inc");
define("THEME_DIR", "/_common/theme/light");

//Theme files
//In BigDaddy we only have the one theme. In the future we may have 
//different CSS files as our themes
define ("HEADER", $_SERVER["DOCUMENT_ROOT"]."/_common/theme/light/header.inc");
define ("FOOTER", $_SERVER["DOCUMENT_ROOT"]."/_common/theme/light/footer.inc");



//Define the OS Type Array
$aOSType = array(
1 => "Linux",
2 => "Windows",
3 => "MacOSX"
);

//The constant STAFF_DOMAIN is reffered to in the theme (which is from staff.bioware.ocm
//as such it needs to be set to the current host
define ("STAFF_DOMAIN", $_SERVER["HTTP_HOST"]);



define("JPGRAPH", LIBDIR."/class/jpgraph/jpgraph.php");
define("JPGRAPH_LINE", LIBDIR."/class/jpgraph/jpgraph_line.php");
define("JPGRAPH_BAR", LIBDIR."/class/jpgraph/jpgraph_bar.php");
define("JPGRAPH_PIE", LIBDIR."/class/jpgraph/jpgraph_pie.php");
define("JPGRAPH_SCATTER", LIBDIR."/class/jpgraph/jpgraph_scatter.php");
define("JPGRAPH_GANTT", LIBDIR."/class/jpgraph/jpgraph_gantt.php");

if ($_GET["SQLDEBUG"]==1)
{
    define("SQLDEBUG", 1);
}
else
{
    define("SQLDEBUG", 0);
}



?>
